package com.fly.repository;

import com.fly.domain.Department;
import com.fly.persistence.MyJpaRepository;

import java.util.List;


/**
 * @author Fly
 * @Description 部门仓储
 * @Date Created in 15:26 2018/1/25
 * @Modified by
 */
public interface DepartmentRepository extends MyJpaRepository<Department,Long> {

    /**
     * 根据名称查找
     * @param name
     * @return
     */
    List<Department> findDepartmentsByNameLike(String name);
}
